package cn.ad.param;


import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class AdSpaceQuery extends AbstractPagingSortParam{
	
	//广告形式ID
	private Integer formatId;
	//创意ID或者名称
	private String search;

	private Integer os;

	private Integer status;
	
	private Integer supplierId;
	
	/**
	 * 媒体ID
	 */
	private Integer pubSiteId;

	private List<Integer> pubSiteIds;

	private String resourceType = "";

	private Integer strategiesGroupId;
	
	public Integer getFormatId() {
		return formatId;
	}

	public void setFormatId(Integer formatId) {
		this.formatId = formatId;
	}

	public String getSearch() {
		return search;
	}

	public void setSearch(String search) {
		this.search = search;
	}

	public Integer getOs() {
		return os;
	}

	public void setOs(Integer os) {
		this.os = os;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(Integer supplierId) {
		if (supplierId!=null){
			this.supplierId = supplierId;
		}else{
			this.supplierId=null;
		}
	}
	
	public Integer getPubSiteId() {
		return pubSiteId;
	}

	public void setPubSiteId(Integer pubSiteId) {
		this.pubSiteId = pubSiteId;
	}

	public Map<String,Object> getSearchMap(){
		Map<String,Object> map = new HashMap<String,Object>();
		map.put("search", this.search);
		map.put("formatId", this.formatId);
		map.put("os",this.os);
		map.put("status",this.status);
		map.put("supplierId",this.supplierId);
		map.put("pubSiteId",this.pubSiteId);
		return map;
	}


	public List<Integer> getPubSiteIds() {
		return pubSiteIds;
	}

	public void setPubSiteIds(List<Integer> pubSiteIds) {
		this.pubSiteIds = pubSiteIds;
	}

	public String getResourceType() {
		return resourceType;
	}

	public void setResourceType(String resourceType) {
		this.resourceType = resourceType;
	}

	public Integer getStrategiesGroupId() {
		return strategiesGroupId;
	}

	public void setStrategiesGroupId(Integer strategiesGroupId) {
		this.strategiesGroupId = strategiesGroupId;
	}
}
